package com.nidu.demo.log.gateway;

import com.alibaba.cola.dto.PageResponse;
import com.nidu.demo.log.model.LoginLog;
import com.nidu.demo.log.model.LoginLogCriteria;

import java.util.List;
import java.util.Set;

/**
 * 登录日志网关接口
 *
 * @author auto
 */
public interface LoginLogGateway {

    LoginLog create(LoginLog loginLog);

    LoginLog update(LoginLog loginLog);

    void deleteById(Long id);

    void deleteByIds(Set<Long> ids);

    LoginLog getById(Long id);

    List<LoginLog> getByIds(Set<Long> ids);

    List<LoginLog> listByCondition(LoginLogCriteria criteria);

    PageResponse<LoginLog> pageByCondition(LoginLogCriteria criteria);

    void deleteAll();

    LoginLog getLastLoginSuccessLog(Long userId);
}
